<?php

namespace app\purchase\controller;
use app\common\controller\PCBase;
use app\common\controller\DBase;
use app\common\library\Upload;
use app\purchase\logic\PurchaseLogic;
use Throwable;
use  think\App;
class Purchase extends PCBase
{

    /**
     * @desc   获取采交货信息
     * @author luckyXiong
     * @date   2024-10-25
     */
    public function getPurchaseList(){
        $params     = $this->request->post();
        return  (new PurchaseLogic())->getPurchaseList($params);
    }


    /**
     * @desc   获取采交货信息
     * @author luckyXiong
     * @date   2024-10-25
     */
    public function addPurchaseList(){
        $params     = $this->request->post();
        $admin_id   = $this->getAdminId();
        $params['admin_id']  = $admin_id;
        return  (new PurchaseLogic())->addPurchaseList($params);
    }


    /**
     * @desc   获取到货状态
     * @author luckyXiong
     * @date   2024-10-26
     */
    public function getArrivalStatus(){
        $params     = $this->request->post();
        return  (new PurchaseLogic())->getArrivalStatus($params);
    }


    /**
     * @desc   获取交货进度
     * @author luckyXiong
     * @date   2024-10-26
     */
    public function getDeliveryStatus(){
        $params     = $this->request->post();
        return  (new PurchaseLogic())->getDeliveryStatus($params);
    }


    /**
     * @desc   获取入库记录
     * @author luckyXiong
     * @date   2025-01-11
     */
    public function get_store_record(){
        $params     = $this->request->post();
        return  (new PurchaseLogic())->get_store_record($params);
    }


    /**
     * @desc   获取入库记录
     * @author luckyXiong
     * @date   2025-01-11
     */
    public function in_store_log(){
        $params     = $this->request->post();
        return  (new PurchaseLogic())->in_store_log($params);
    }


    /**
     * @desc   获取采购变更单接口
     * @author luckyXiong
     * @date   2025-01-11
     */
    public function getPurchaseChange(){
        $params     = $this->request->post();
        return  (new PurchaseLogic())->getPurchaseChange($params);
    }




    /**
     * @desc   获取1688采购
     * @author luckyXiong
     * @date   2025-02-08
     */
    public function get_1688_address(){
        $params     = $this->request->post();
        return  (new PurchaseLogic())->get_1688_address($params);
    }











}